home *** CD-ROM | disk | FTP | other *** search
- /* arexx Script
- Make anim with pictures
- */
-
- options results
- parse ARG Port b
-
- ADDRESS value Port
- pp_AvoidRefresh
-
- Preview=0
- pp_DialogInit 250 60 "*Preview*Size*" 1
- pp_Cycle 0 100 8 100 16 "Size" 1 "96x96|144x144|192x192" Preview
- pp_Dialog
- rc=result
- if rc=0 then
- do
- EXIT
- end
-
- pp_GetDialog 0
- Preview=result
-
- pp_AskMultiFile 'Load*Pictures'
- count=result
-
- pp_AliasOn
- file="Ram:MultiFile"
- IF OPEN("g",file,"read") then DO
- file=READLN("g")
- pp_New 352 282 9
- pp_MakeAnim count Preview
- pp_CountFrames
- count=result
- Do i=1 to count-1
- file=READLN("g")
- pp_ProgressText 'DCTVtoILBM*#'||i
- ADDRESS command;'C:ReadDCTV '||file||' ram:DCTVtemp'
- ADDRESS value Port
- pp_ProgressText 'Ld*Brush*#'||i
- pp_Bload 'ram:DCTVtemp'
- pp_GetWidthB
- w=result
- pp_GetHeightB
- h=result
- pp_ScaleBrush w/2 h
- IF w=0 then DO
- EXIT
- END
- x=w/4
- y=h/2
- pp_Plot x y
- pp_FastNextFrame
- END
- CALL close(file)
- pp_GotoFrame 1
- END
- pp_FreeBrush
- pp_PermitRefresh
- ADDRESS Command;'delete ram:DCTVtemp'
-
-
-
-